home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_1599 / 1416 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.8 KB

  1. From: Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
  2. Date: Fri, 20 May 94 10:47:37 +0200
  3. Message-Id: <9405200847.AA16757@issan.informatik.uni-dortmund.de>
  4. To: mint@atari.archive.umich.edu
  5. Subject: MiNT 1.10: change blksize on biosfs and pipefs
  6.  
  7. I don't see any reason why blksize on biosfs cannot be 1024.  This is
  8. so under SunOS and Linux, and it helps utilities like cp and cat which
  9. uses blksize as the size of the buffer.  The same change should be
  10. done for the pipefs.
  11.  
  12. *** orig/biosfs.c    Fri Feb 11 22:03:02 1994
  13. --- biosfs.c    Fri Mar 25 02:49:08 1994
  14. ***************
  15. *** 185,191 ****
  16.       xp->uid = curproc->euid;
  17.       xp->gid = curproc->egid;
  18.       xp->size = 0L;
  19. !     xp->blksize = 1L;
  20.       xp->nblocks = 0L;
  21.   
  22.       xp->mtime = xp->atime = xp->ctime = timestamp;
  23. --- 185,191 ----
  24.       xp->uid = curproc->euid;
  25.       xp->gid = curproc->egid;
  26.       xp->size = 0L;
  27. !     xp->blksize = 1024L;
  28.       xp->nblocks = 0L;
  29.   
  30.       xp->mtime = xp->atime = xp->ctime = timestamp;
  31. *** orig/pipefs.c    Thu Feb 10 00:08:10 1994
  32. --- pipefs.c    Thu May 19 20:26:44 1994
  33. ***************
  34. *** 164,170 ****
  35.       xattr->dev = fc->dev;
  36.       xattr->rdev = fc->dev;
  37.       xattr->nlink = 1;
  38. !     xattr->blksize = 1;
  39.   
  40.       if (fc->index == 0) {        /* root directory? */
  41.           xattr->uid = xattr->gid = 0;
  42. --- 164,170 ----
  43.       xattr->dev = fc->dev;
  44.       xattr->rdev = fc->dev;
  45.       xattr->nlink = 1;
  46. !     xattr->blksize = 1024L;
  47.   
  48.       if (fc->index == 0) {        /* root directory? */
  49.           xattr->uid = xattr->gid = 0;
  50. ***************
  51. *** 186,192 ****
  52.               xattr->attr &= ~FA_RDONLY;
  53.           }
  54.   
  55. -         xattr->nblocks = PIPESIZ;
  56.           if (this->dosflags & FA_SYSTEM) {    /* pseudo-tty */
  57.               xattr->size = PIPESIZ/4;
  58.               xattr->rdev = PIPE_RDEV|1;
  59. --- 186,191 ----
  60. ***************
  61. *** 194,199 ****
  62. --- 193,199 ----
  63.               xattr->size = PIPESIZ;
  64.               xattr->rdev = PIPE_RDEV|0;
  65.           }
  66. +         xattr->nblocks = xattr->size / 1024L;
  67.       }
  68.       return 0;
  69.   }
  70.